package com.crm.pojo;

import org.springframework.transaction.annotation.Transactional;

import javax.persistence.*;
import java.io.Serializable;


/**
 * The persistent class for the REPOSITORY database table.
 * 
 */
@Entity
@NamedQuery(name="Repository.findAll", query="SELECT r FROM Repository r")
public class Repository implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(initialValue = 1, allocationSize = 1,name="REPOSITORY_RID_GENERATOR", sequenceName="SEQ3")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="REPOSITORY_RID_GENERATOR")
	private Long rid;

	private String raddress;

	@Column(name="REPOSITORY_IS_DEL")
	private String repositoryIsDel;

	private String rname;

	@Transient
	private String province;
	@Transient
	private String city;
	@Transient
	private String district;


	public Repository() {
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public Long getRid() {
		return this.rid;
	}

	public void setRid(Long rid) {
		this.rid = rid;
	}

	public String getRaddress() {
		return this.raddress;
	}

	public void setRaddress(String raddress) {
		this.raddress = raddress;
	}

	public String getRepositoryIsDel() {
		return this.repositoryIsDel;
	}

	public void setRepositoryIsDel(String repositoryIsDel) {
		this.repositoryIsDel = repositoryIsDel;
	}

	public String getRname() {
		return this.rname;
	}

	public void setRname(String rname) {
		this.rname = rname;
	}

}